package com.xieyingwangluo.yxpart.service;

import com.xieyingwangluo.yxpart.entity.EnrollModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EnrollService {

    /**
     * 添加
     *
     * @return
     */
    int add(EnrollModel enrollModel);

    //根据用户id和兼职id查找报名表
    List<EnrollModel> selUserAndPart(String userinfo_id, String part_id);


    //查询报名信息
    List<EnrollModel> selO(@Param("userinfo_id") String userinfo_id);

    //获取用户列表
    List<EnrollModel> selA(EnrollModel enrollModel);

    //取消报名
    int del(String noid);

    //查询报名该兼职的所有
    List<EnrollModel> selByPartId(String part_id);
}
